<?php

/**
 * CustomerComponent.
 * 
 * @package    scard
 * @subpackage email
 * @author     Pedro Nilton Olivera Chamochumbi <poliverach@gmail.com>
 * @author     Jonathan Olger Nieto Lajo <jonathan_nieto@hotmail.com>
 */
class CustomerComponent extends sfComponents
{
  public function executeSendPassword()
  {
    $this->setStoreAndDomain();
  }
  public function executeSignIn()
  {
    $this->setStoreAndDomain();
  }
  public function executeChangeEmailPassword()
  {
    $this->setStoreAndDomain();
  }
  public function executeChangeEmail()
  {
    $this->setStoreAndDomain();
  }
  public function executeChangePassword()
  {
    $this->setStoreAndDomain();
  }
  
  protected function setStoreAndDomain()
  {
    $this->store  = $this->customer->getStore()->getCopyCat();
    $this->domain = $this->store->getDomain();
  }
}
